<!-- sitebar -->
<div class="sidenav">

    <div class="sidebar-widget" style="margin: -1px 0 0 0;">
        <h5 class="title" style="margin-bottom:0"><?php echo t('Navigation','sidebarNavWidget'); ?></h5>
    </div><!-- End .sidenav-widget -->

    <div class="mainnav">
        <?php $this->widget('backend.widgets.menu.FMenu', array(
        'activateItemsOuter'=>false,
        'activateItems' => true,
        'id' => 'ul-mainnav',
        'submenuHtmlOptions'=>array(
            'class'=>'sub'
        ),
        'activeCssClass'=>'current',
        'items' => array(
            array(
                'label'=>t('Go to Frontend','sidebarNav'),
                'url'=>'http://'.$_SERVER['SERVER_NAME'],
                'icon'=>'icon16  iconic-icon-home',
                'linkOptions'=>array('target'=>'_blank')
            ),
            array(
                'label' => t('Translate','sidebarNav'),
                'url' => '#',
                'icon' => 'icon16 entypo-icon-feather',
                'items'=>array(
                    array(
                        'label' => t('Edit translations page','sidebarNav'),
                        'url' => array('/translate/edit/admin'),
                        'icon' => 'icon16 brocco-icon-pencil',
                    ),
                    array(
                        'label' => t('Missing translations page','sidebarNav'),
                        'url' => array('/translate/edit/missing'),
                        'icon' => 'icon16 brocco-icon-bug',
                    ),
                )
            ),
            array(
                'label' => t('User Manager','sidebarNav'),
                'url' => '#',
                'icon' => 'icon16 entypo-icon-users',
                'items'=>array(
                    array(
                        'label' => t('User Manager','sidebarNav'),
                        'url' => array('/fuser/admin'),
                        'icon' => 'icon16 brocco-icon-star',
                    ),
                    array(
                        'label' => t('Create User','sidebarNav'),
                        'url' => array('/fuser/create'),
                        'icon' => 'icon16  entypo-icon-contact',
                    ),
                    array(
                        'label' => t('Permission','sidebarNav'),
                        'url' => array('/rights'),
                        'icon' => 'icon16  cut-icon-user',
                        'active'=>($moduleName == 'rights')?true:false
                    ),
                )
            ),
            array(
                'label' => t('Menu','sidebarNav'),
                'url' => '#',
                'icon' => 'icon16 icomoon-icon-link',
                'items'=>array(
                    array(
                        'label' => t('Manager','sidebarNav'),
                        'url' => array('/menu/admin'),
                        'icon' => 'icon16 icomoon-icon-arrow-right-2',
                    ),
                    array(
                        'label' => t('Add Menu','sidebarNav'),
                        'url' => array('/menu/create'),
                        'icon' => 'icon16 icomoon-icon-arrow-right-2',
                    ),
                    array(
                        'label' => t('Add Menu Item','sidebarNav'),
                        'url' => array('/menu/createitem'),
                        'icon' => 'icon16 icomoon-icon-arrow-right-2',
                    ),
                )
            ),
            array(
                'label' => t('Content','sidebarNav'),
                'url' => '#',
                'icon' => 'icon16 iconic-icon-layers',
                'items'=>array(
                    array(
                        'label' => t('Categories','sidebarNav'),
                        'url' => '#',
                        'icon' => 'icon16 icomoon-icon-list-view',
                        'items'=>array(
                            array(
                                'label' => t('Manager','sidebarNav'),
                                'url' => array('/category/admin'),
                                'icon' => 'icon16 icomoon-icon-arrow-right-2',
                            ),
                            array(
                                'label' => t('Add new Category','sidebarNav'),
                                'url' => array('/category/create'),
                                'icon' => 'icon16  icomoon-icon-arrow-right-2',
                            ),
                        ),
                    ),
                    array(
                        'label' => t('Content','sidebarNav'),
                        'url' => "#",
                        'icon' => 'icon16 iconic-icon-document-alt-stroke',
                        'items'=>array(
                            array(
                                'label' => t('Manager','sidebarNav'),
                                'url' => array('/content/admin'),
                                'icon' => 'icon16 icomoon-icon-arrow-right-2',
                            ),
                            array(
                                'label' => t('Add new Content','sidebarNav'),
                                'url' => array('/content/create'),
                                'icon' => 'icon16  icomoon-icon-arrow-right-2',
                            ),
                        ),
                        //'active'=>(app()->controller->id == 'content')?true:false
                    ),
                )
            ),
            array(
                'label' => t('Settings','sidebarNav'),
                'url' => '#',
                'icon' => 'icon16 icomoon-icon-cog',
                'items'=>array(
                    array(
                        'label' => t('General','sidebarNav'),
                        'url' => array('/setting/general'),
                        'icon' => 'icon16 iconic-icon-new-window',
                    ),
                    array(
                        'label' => t('System','sidebarNav'),
                        'url' => array('/setting/system'),
                        'icon' => 'icon16 icomoon-icon-wrench',
                    ),
                    array(
                        'label' => t('Add','sidebarNav'),
                        'url' => array('/setting/add'),
                        'icon' => 'icon16 cut-icon-plus-2',
                    ),
                )
            ),
        ),
    ));
        ?>
    </div>
</div><!-- End sidenav -->